package com.xiaoyu.lingdian.service;

import java.util.List;
import com.xiaoyu.lingdian.core.mybatis.page.Page;
import com.xiaoyu.lingdian.entity.CorePointsProduct;

public interface CorePointsProductService {

	/**
	* 添加
	* @param corePointsProduct
	* @return
	*/
	public boolean insertCorePointsProduct(CorePointsProduct corePointsProduct);

	/**
	* 修改
	* @param corePointsProduct
	* @return
	*/
	public boolean updateCorePointsProduct(CorePointsProduct corePointsProduct);

	/**
	* 删除
	* @param corePointsProduct
	* @return
	*/
	public boolean deleteCorePointsProduct(CorePointsProduct corePointsProduct);

	/**
	* 查询
	* @param corePointsProduct
	* @return
	*/
	public CorePointsProduct getCorePointsProduct(CorePointsProduct corePointsProduct);

	/**
	 * 根据条件分页查询商品
	 *
	 * @param crpopTitle
	 * @param crpopArea
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	public Page<CorePointsProduct> findCorePointsProductByCnd(String crpopTitle, String crpopArea, int pageNum, int pageSize);
	
	/**
	* 批量删除
	* 
	* @param list
	* @return boolean
	*/
	public boolean deleteCorePointsProductByCnd(List<String> list);

	/**
	* 库存-相应值
	* 
	* @param CorePointsProduct
	* @return
	*/
	public boolean updateCorePointsProductDesc(CorePointsProduct corePointsProduct);	
	
}